<!DOCTYPE html>
<html lang="zh">
<head>
{% block head %}
  <meta charset="UTF-8">
  <title>{% block title %}{% endblock %}</title>
  <script src="{{ url_for('static', filename='js/jquery.js') }}" type="text/javascript"></script>
  <script src="{{ url_for('static',filename='js/bootstrap.js')}}" type="text/javascript"></script><link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
  <link rel="icon" href="{{ url_for('static', filename='image/favicon.ico') }}">
  <style>
  .footer{

height: 70px;

width: 100%;

background-color: #ddd;

position: fixed;

bottom: 0;

}
  </style>
{% endblock %}
</head>
{% block div %}
<div>
<nav class="navbar navbar-inverse navbar-fixed-top">
        <div class="container">
            <div class="navbar-header">
            <!--小屏幕设备菜单自适应-->
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                    data-target="#navbar" aria-expanded="false">
                <span class="sr-only">菜单</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <!--logo-->
            <a class="navbar-brand " href="{{ url_for('testa') }}" target="_blank">
                <img src="{{ url_for('static', filename='image/4523.png') }}" width="40px" height="40px">
            </a>
        </div>

            <div id="navbar" class="navbar-collapse collapse">
              {% block na %}
                <ul class="nav navbar-nav">
                    <li class="active"><a href="#">首页</a></li>
                    <li><a href="{{ url_for('add') }}">新建todo</a></li>
                    <li><a href="#">论坛</a></li>
                    <li><a href="{{ url_for('about') }}">关于</a></li>
                </ul>
                {% endblock %}
            {% block sign %}
                <form class="navbar-form navbar-right" action="{{ url_for('sign_in') }}" method="post">
                    <input type="text" placeholder="请填写用户名" name="user" class="form-control" required="required">
                    <input type="password" placeholder="填写密码" name="password" class="form-control">
                    <button type="submit" class="btn btn-success">登录</button>
                    <button type="button" class="btn btn-success"><a href="{{ url_for('sign_up') }}">注册</a></button>
                </form>
            {% endblock %}
            {% block xiala %}
                <ul class="nav navbar-nav navbar-right">
                    <li></li>
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">个人中心<span class="caret"></span></a>
                        <ul class="dropdown-menu">
                            <li><a href="#">我的设置</a></li>
                            <li><a href="#">我的收藏</a></li>
                            <li class="divider" role="separator"></li>
                            <li><a href="{{ url_for('delete_cookie') }}">注销登录</a></li>
                        </ul>
                    </li>
                </ul>
              {% endblock %}
            </div>
        </div>
    </nav>
</div>
{% endblock %}
<body>
{% block body %}
{% endblock %}
<div class="footer" style="margin-top: auto;" align="center">
    <footer style="padding-top:50px ">
        <strong>&copy;余德强|2018.12.3</strong>
    </footer>
 </div>
</body>
</html>